// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

/**
 * Enum for road types.
 */
enum class FWorldRoadObjectParkingSpaceMarkingSide
{
	Front,
	Rear,
	Left,
	Right
};

inline FWorldRoadObjectParkingSpaceMarkingSide FWorldRoadObjectParkingSpaceMarkingSideFromJson(const json& j)
{
	if (j == "front")	return FWorldRoadObjectParkingSpaceMarkingSide::Front;
	if (j == "rear")	return FWorldRoadObjectParkingSpaceMarkingSide::Rear;
	if (j == "left")	return FWorldRoadObjectParkingSpaceMarkingSide::Left;
	if (j == "right")	return FWorldRoadObjectParkingSpaceMarkingSide::Right;
	return FWorldRoadObjectParkingSpaceMarkingSide::Front;
}

inline json FWorldRoadObjectParkingSpaceMarkingSideToJson(FWorldRoadObjectParkingSpaceMarkingSide p)
{
	if (p == FWorldRoadObjectParkingSpaceMarkingSide::Front)	return "front";
	if (p == FWorldRoadObjectParkingSpaceMarkingSide::Rear)		return "rear";
	if (p == FWorldRoadObjectParkingSpaceMarkingSide::Left)		return "left";
	if (p == FWorldRoadObjectParkingSpaceMarkingSide::Right)	return "right";
	return "front";
}

inline void from_json(const json& j, FWorldRoadObjectParkingSpaceMarkingSide& p)
{
	p = FWorldRoadObjectParkingSpaceMarkingSideFromJson(j);
}

inline void to_json(json& j, const FWorldRoadObjectParkingSpaceMarkingSide& p)
{
	j = FWorldRoadObjectParkingSpaceMarkingSideToJson(p);
}
